package com.xbongbong.pro.onlineEditor;

import com.xbongbong.paas.domain.entity.ext.OptionalRangeEntity;
import lombok.Data;

import java.util.List;

/**
 * @author: yingjf
 * @date: 2023/3/8 14:28
 * @description:
 */
@Data
public class ContractTemplateBaseListItemPojo {
    /**
     * 主键id
     */
    private Long id;
    /**
     * 模板名称
     */
    private String templateName;

    /**
     * 文件名
     */
    private String fileName;

    /**
     * 文件url
     */
    private String fileUrl;

    /**
     * 文件后缀
     */
    private String fileExt;

    /**
     * 文件大小
     */
    private Long fileSize;

    /**
     * 文件上传时间
     */
    private Long fileUploadTime;



    /**
     * 查看权限
     */
    private List<OptionalRangeEntity> viewPermission;

    /**
     * 查看权限字符串
     */
    private String viewPermissionStr;

    /**
     * 是否启用 0未启用 1启用
     */
    private Integer enable;
    /**
     * 创建人
     */
    private String creatorUserNmae;


    public ContractTemplateBaseListItemPojo(Long id, String templateName, String fileName, String fileUrl, String fileExt, Long fileSize, Long fileUploadTime, List<OptionalRangeEntity> viewPermission,String viewPermissionStr, Integer enable,String creatorUserNmae) {
        this.id = id;
        this.templateName = templateName;
        this.fileName = fileName;
        this.fileUrl = fileUrl;
        this.fileExt = fileExt;
        this.fileSize = fileSize;
        this.fileUploadTime = fileUploadTime;
        this.viewPermission = viewPermission;
        this.viewPermissionStr = viewPermissionStr;
        this.enable = enable;
        this.creatorUserNmae = creatorUserNmae;
    }
}
